<?php
namespace app\common\validate;
use think\Validate;
use think\Request;
class MemberGroup extends Validate{
    protected $rule =   [
        'role'  => 'require',
    ]; 

    protected $message  =   [
        'role.require' => '角色名称不为空',
    ];
}